package day3_homework;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

//输出今年的国庆节（10.1）是周几
public class _5 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int a=in.nextInt();
        Date date = new Date(a, Calendar.OCTOBER,0);
        SimpleDateFormat s = new SimpleDateFormat("E");
        System.out.println(s.format(date));
    }
}
